<?php

declare (strict_types=1);

namespace App\Common\Model\System;

use Zms\Basics\BasicsModel;
use Zms\HyperfCasts\StrtotimeCasts;

/**
 * @property int $id
 * @property string $key 文件标记
 * @property int $index 分片编号
 * @property string $path 文件位置
 * @property int $time 上传时间
 */
class ResourceChunkModel extends BasicsModel
{

    public const CREATED_AT = 'time';

    public const UPDATED_AT = null;

    /**
     * The table associated with the model.
     *
     * @var null|string
     */
    protected ?string $table = 'system_resources_chunk';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected array $fillable = [];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected array $casts = ['id' => 'int', 'index' => 'integer', 'time' => StrtotimeCasts::class];
}
